// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App'
import router from './router'
import store from './store'
// 加载权限控制
import './permission'
import * as filters from './filters' // global filter
import Icon from 'vue-svg-icon/Icon.vue'
import VueBarcode from '@xkeshi/vue-barcode'

Vue.component('barcode', VueBarcode) // 声明条形码组件

Vue.component('icon', Icon)

// register global utility filters.
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false

Vue.use(ElementUI)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
	store,
  components: { App },
  template: '<App/>'
})
